home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / midi / omed_pt.lha / rexx / Insert.omed < prev    next >
Text File  |  1996-01-02  |  442b  |  20 lines

  1. /* Insert Buffer - Case 18-10-95 */
  2.  
  3. address OCTAMED_REXX
  4. options results
  5.  
  6. call open("rn_length","T:rn_length.omedtemp",R)
  7. length = readln("rn_length")
  8. call close("rn_length")
  9. 'ed_getcurrline var currline'
  10. 'ed_getnumlines var numlines'
  11. if currline + length >= numlines
  12. then do
  13. length = numlines - currline
  14. currline = 0 - length
  15. end
  16. 'ed_insertemptynote Insspace' length
  17. 'rn_paste'
  18. 'ed_goto line' currline + length
  19. 'wi_showstring INSERTED'
  20. exit